package structural.flyweight;

import lombok.Data;

/**
 * @Description: 车具体类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
@Data
public class Car implements ICar {
    private String brand;
    private String color;

    public Car(String brand, String color) {
        this.color = color;
        this.brand = brand;
    }

    public void run() {
        System.out.println(this.color + "的" + this.brand + "正在运行");
    }
}
